<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWechattokenTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechattoken', function (Blueprint $table) {
            $table->increments('id');
            $table->string('access_token',200)->comment('token');
            $table->string('ticket',200)->comment('ticket');
            $table->dateTime('refreshtime')->comment('刷新时间');
            $table->timestamps();
        });
    }


    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('wechattoken');
    }
}
